﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using iConnector;

namespace Module
{
    public partial class WinForm : Form
    {
        public WinForm()
        {
            InitializeComponent();
        }
    } 
    public class Module : iModule
    {
        private String pName;
        private IModuleHost pHost;
        WinForm Winform;
        public Module()
        {
            pName = "SplashScreen";
        }
        public String Name
        {
            get { return pName; }
            set { pName = value; }
        }
        public void Load()
        {
            //Console.WriteLine("1");

        }
        public void Unload()
        {
            Winform.Close();
            
        }
        private void StartSplash()
        {
            Winform = new WinForm();
            Winform.ShowDialog();
            
        }
        public IModuleHost Host
        {
            get { return pHost; }
            set { pHost = value; pHost.Register(this); }
        }

    }
   
    

}
